const { DataTypes } = require("sequelize");
const sequelize = require("../../config/sequelize");
const BlogTopic = sequelize.define("blog_topic", {
    /**
     * 主键
    */
    id: {
       type: DataTypes.INTEGER,
       allowNull: false,
       primaryKey: true,
       autoIncrement: true,
    },
    /**
     * 
     */
    name: {
        type: DataTypes.STRING,
    },
    /**
     * 
     */
    uid: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    cid: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    status: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    view_count: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    like_count: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    content: {
        type: DataTypes.STRING,
    },
    /**
     * 
     */
    comment_count: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    uname: {
        type: DataTypes.STRING,
    },
    /**
     * 
     */
    desc: {
        type: DataTypes.STRING,
    },
    /**
     * 
     */
    is_top: {
        type: DataTypes.INTEGER,
    },
    /**
     * 
     */
    head_img: {
        type: DataTypes.STRING,
    },
});
module.exports = BlogTopic;